Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods


ODValueIterator

Superclasses
ODObject
Subclasses
none

An object of the ODValueIterator class provides access to the entries of a value name space.

Description

You use a value iterator to apply an operation to all entries of a value name space. For example, you might use a value iterator to iterate over a list of part editors to obtain information about each part editor, such as the part's supported part kinds.

Your part creates a value iterator object by calling the value name space's CreateIterator method (page 821), which returns a reference to a value iterator object. The iterator performs an unordered traversal of the name space.

While you are using a value iterator, you should not modify or delete the name space. You must postpone adding entries to or removing entries from the name space until after you have deleted the iterator.

For more information related to value name spaces, see the ODValueNameSpace class description (page 820). For more information on accessing objects through iterators, see "Accessing Objects Through Iterators" on page 473 in OpenDoc Programmer's Guide.

Methods

This section presents summary descriptions of the ODValueIterator methods grouped according to purpose, followed by detailed descriptions in alphabetical order.

Accessing

First
Begins the iteration and obtains the first entry in the name space.
Next
Obtains the next entry in the name space.
Iterator Testing

IsNotComplete
Returns a Boolean value that indicates whether the iteration is incomplete.

Methods
First
IsNotComplete
Next

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help